package com.study.workflow;

import org.flowable.engine.*;
import org.flowable.engine.impl.cfg.StandaloneProcessEngineConfiguration;
import org.flowable.engine.repository.ProcessDefinition;
import org.flowable.engine.runtime.ProcessInstance;
import org.flowable.task.api.Task;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

/**
 * @author sjw
 * @description
 * @date 2019-08-23 上午8:21
 */
public class Init {
    public static void main(String[] args) {

        ProcessEngineConfiguration conf = new StandaloneProcessEngineConfiguration()
                .setJdbcUrl("jdbc:mysql://192.168.10.200:3316/work_flow?useUnicode=true&characterEncoding=UTF-8")
                .setJdbcDriver("com.mysql.jdbc.Driver")
                .setJdbcUsername("dbadmin_app")
                .setJdbcPassword("dap12345678@")
                .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
        System.out.println("--------------");
        ProcessEngine engine = conf.buildProcessEngine();

    }
}
